//
//  ContentView.swift
//  Example
//
//  Created by xxs on 2024/10/21.
//

import SwiftUI
import CalendarShared
import WidgetCalendarShared

struct ContentView: View {
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundStyle(.tint)
            Text("Hello, world!")
        }
        .padding()
        .onAppear {
            let arr = ["hdaj", "djaks", "ueiqe", "dueiqwe", "da", "dkasldkalsd", "we"]
            print(arr.prefix(count: 3, maxLength: 4))
            print(Date().weekOfMonth)
            let dateComponents = Calendar.current.dateComponents([.weekOfMonth], from: .now)
            print(dateComponents.weekOfMonth)
        }
    }
}

#Preview {
    ContentView()
}
